﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Cofe.Core.Logger
{
    public class DummyEventHub : IEventHub
    {
        public IEventListener<T> SpawnListener<T>(Action<IEnumerable<IEventLog<T>>> handleAction, CancellationToken token) where T : EventArgs
        {
            return null;
        }

        public void RegisterEventListener(IEventListener listener)
        {
            
        }

        public void RegisterEventListener<T>(IEventListener<T> listener) where T : EventArgs
        {
            
        }

        public void DispatchEvent<T>(object sender, T args) where T : EventArgs
        {
            
        }

        public void RegisterEventSource<T>(IEventSource<T> source) where T : EventArgs
        {
            
        }

        public void RegisterEventSource(IEventSource source)
        {
            
        }

        public IEventSource<ErrorEventArgs> ErrorSource
        {
            get { return null; }
        }

        public IEventListenerFactory[] EventListenerFactories
        {
            get
            {
                return new IEventListenerFactory[] { };
            }
            set
            {
                
            }
        }
    }
}
